#ifndef _LINKSTACK_H_
#define _LINKSTACK_H_


#include "DoubleLinkList.h"


class LinkStack
{
private:
    DoubleLinkList list;
public:
    using ElementType = DoubleLinkList::ElementType;
    LinkStack();
    ~LinkStack();
    //入栈
    void Push(const ElementType& element);
    //出栈
    void Pop();
    //获取栈顶元素
   LinkStack::ElementType *GetTop();
   //判断栈是否为空
   bool IsEmpty();

   size_t Size(){return list.Size();}
};









#endif